<!--%import("filter/insert_category.xml")-->
<!--%import("filter/update_category.xml")-->

<!--#include("./header.html")-->

<!-- 카테고리의 위/아래, 삭제와 관련된 form -->
<form id="fo_category_info" action="./" method="get">
    <input type="hidden" name="module_category_srl" value="" />
    <input type="hidden" name="mode" value="" />
</form>

<table cellspacing="0" class="rowTable">
<thead>
    <tr>
        <th scope="col" class="wide"><div>{$lang->category_title}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col" colspan="2"><div>&nbsp;</div></th>
    </tr>
</thead>
<tbody>
    <!--@if(!count($category_list))-->
    <tr>
        <td colspan="4">{$lang->msg_category_is_null}</td>
    </tr>
    <!--@end-->
    <!--@foreach($category_list as $key => $val)-->
    <tr>
        <td class="wide">{$val->title}</td>
        <td class="nowrap">{zdate($val->regdate,"Y-m-d H:i:s")}</td>
        <td><a href="{getUrl('module_category_srl',$val->module_category_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_modify}</span></a></td>
        <td><a href="#" onclick="doUpdateCategory('{$val->module_category_srl}','delete','{$lang->confirm_delete}');return false;" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
    </tr>
    <!--@end-->
</tbody>
</table>

<!-- 카테고리 추가 -->
<form action="./" method="post" onsubmit="return procFilter(this, insert_category)">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="module_category_srl" value="" />

    <table cellspacing="0" class="rowTable">
    <tr>
        <th scope="row"><div>{$lang->category_title}</div></th>
        <td>
            <input type="text" name="title" class="inputTypeText w300" />
        </td>
    </tr>
    <tr class="row2">
        <th colspan="2" class="button">
            <span class="button strong black"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
        </th>
    </tr>
    </table>
</form>
